package com.dqk.demo.controller;

import com.dqk.demo.entity.Girl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class Hello1Controller {

    @Value("${girl.cupSize}")
    private String cupSize;

    @Value("${content}")
    private String content;

    @Autowired
    private Girl girl;

    @RequestMapping(value = "/hello1",method = RequestMethod.GET)
    @ResponseBody
    public String say(){
        return "hello Spring boot" + girl.getCupSize() + ":" + girl.getAge();
    }

    @RequestMapping(value = "/index",method = RequestMethod.GET)
    public String index(){
        return "index";
    }



}
